﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using FA.Library.Plugin;

namespace FA.Library.Plugin
{
    public class PluginLibrary
    {
        private readonly string _name;
        private readonly string _classname;
        private readonly string _author;
        private readonly string _version;
        private readonly string[] _availableSettings;
        private readonly Assembly _assembly;

        #region Properties

        public string Name
        {
            get { return _name; }
        }
        
        public string Classname
        {
            get { return _classname; }
        }
        
        public string Author
        {
            get { return _author; }
        }
        
        public string Version
        {
            get { return _version; }
        }

        public string[] AvailableSettings
        {
            get { return _availableSettings; }
        }

        public Assembly Assembly
        {
            get { return _assembly; }
        }

        #endregion

        public PluginLibrary(string name, string classname, string author, string version, string[] availableSettings, Assembly assembly)
        {
            _name = name;
            _classname = classname;
            _author = author;
            _version = version;
            _availableSettings = availableSettings;
            _assembly = assembly;
        }

        public override string ToString()
        {
            return Name;
        }
    }
}